import 'package:aweb5/bean/aplus/common_result_entity.dart';

commonResultEntityFromJson(CommonResultEntity data, Map<String, dynamic> json) {
	if (json['msg'] != null) {
		data.msg = json['msg']?.toString();
	}
	if (json['data'] != null) {
		data.data = new List<dynamic>();
		data.data.addAll(json['data']);
	}
	if (json['code'] != null) {
		data.code = json['code']?.toInt();
	}
	return data;
}

Map<String, dynamic> commonResultEntityToJson(CommonResultEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['msg'] = entity.msg;
	if (entity.data != null) {
		data['data'] =  [];
	}
	data['code'] = entity.code;
	return data;
}